import request from '@/utils/request';

//获取未录入人员名单
export const notScore = () => request.get('/api/notScore');

//添加成绩
export const addScore = (params) => request.post('/api/score',params);

//获取当天录入成绩的数据
export const getScoreList = () => request.get('/api/score');

//删除成绩
export const delScore = (id) => request.delete(`/api/score/${id}`);

//搜索
export const search = (key) => request.get('/api/search',{params:{key}});

//编辑
export const edit = (id,params) => request.put(`/api/score/${id}`,params);